package com.open.system.model.dto;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户Excel导入导出DTO
 *
 * @author 大树03
 * @date 2025-10-29
 */
@Data
@ExcelIgnoreUnannotated
@HeadRowHeight(20)
public class UserExcelDto implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    @ExcelProperty(value = "账号", index = 0)
    @ColumnWidth(20)
    private String username;

    /**
     * 昵称
     */
    @ExcelProperty(value = "用户昵称", index = 1)
    @ColumnWidth(20)
    private String name;

    /**
     * 用户邮箱
     */
    @ExcelProperty(value = "邮箱", index = 2)
    @ColumnWidth(25)
    private String email;

    /**
     * 手机号码
     */
    @ExcelProperty(value = "手机号", index = 3)
    @ColumnWidth(20)
    private String phone;

    /**
     * 用户状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态(0正常/1停用)", index = 4)
    @ColumnWidth(30)
    private Integer status;

    /**
     * 密码（仅用于导入）
     */
    @ExcelProperty(value = "密码", index = 5)
    @ColumnWidth(20)
    private String password;
}

